package com.cgx.dao;

import com.cgx.entity.message.SessionUser;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chenguanxin
 * @date 2021-06-28 23:39
 */
@Repository
public interface SessionUserDao  extends MongoRepository<SessionUser, String> {

    List<SessionUser> findAllBySessionIdAndIsDelete(String sessionId, int isDelete);

    List<SessionUser> findAllBySessionIdInAndIsDelete(List<String> idList, int isDelete);

    List<SessionUser> findAllByUserIdAndIsDelete(String userId, int isDelete);
}
